package xyj.sparrow.scheduler.service;

import xyj.sparrow.common.netty.bean.Result;
import xyj.sparrow.scheduler.entity.TaskLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jim
 * @since 2021-06-05
 */
public interface ITaskLogService extends IService<TaskLog> {

    void logStart(String logId, String appId, String taskId, String client, LocalDateTime now);

    void logError(String logId, String appId, String taskId, String msg, LocalDateTime now);

    void logEnd(Result<String> result);
}
